class Portal {
	String name
	String description
	String urlBase
	
	static hasMany=["allNews" : News,"events" : Event]
	
	static mappedBy = ["allNews":"portal","events" : "portal"]
	
		
	static constraints = {
		name(blank:false,nullable:false)
		urlBase(blank:false,nullable:false,url:true)
	}
	
	public String toString(){
		name
	}
}
